SftTree/NET 2.0

OnEditAllowed Method, SftTree Class

Softel vdm, Inc.

Raises the EditAllowed event.

Syntax      SftTree Class (Softelvdm.SftTreeNET)

VB   

Protected Overridable Sub OnEditAllowed( ByVal e As EditAllowedEventArgs )

C#   

protected virtual void OnEditAllowed( EditAllowedEventArgs e );

C++   

protected: virtual void OnEditAllowed( EditAllowedEventArgs^ e );

e

The event data.

Comments

The OnEditAllowed method raises the EditAllowed event.

Raising an event invokes the event handler through a delegate.

The OnEditAllowed method also allows derived classes to handle the event without attaching a delegate. This is the preferred technique for handling the event in a derived class.

When overriding OnEditAllowed in a derived class, make sure to call the base class's OnEditAllowed method so that registered delegates receive the event.


Feedback / comments / error reports for this topic
© 2007 - Softel vdm, Inc. - www.softelvdm.com